package cn.chrilwe.pigpig.core.model.auth;

import cn.chrilwe.autocreatetable.start.annotation.Entity;
import cn.chrilwe.autocreatetable.start.annotation.mysql.AutoIncrement;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Column;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Notnull;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Primary;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Table;
import cn.chrilwe.autocreatetable.start.common.Engine;
import cn.chrilwe.autocreatetable.start.common.MysqlColumnType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
  * 验证码详细
 * @author chrilwe
 * 2020-8-25
 */
@Data
@ApiModel
@Entity
@Table(name = "tb_validate_code", engine = Engine.INNODB, charset = "utf8")
public class ValidateCode {
	
	@Primary
	@AutoIncrement
	@Column(name = "id", length = 4, type = MysqlColumnType.INT)
	@Notnull
	@ApiModelProperty(name = "id", value = "验证码id")
	private int id;
	
	@Column(name = "imageUrl", length = 150, type = MysqlColumnType.VARCHAR)
	@Notnull
	@ApiModelProperty(name = "imageUrl", value = "验证码图片地址")
	private String imageUrl;
	
	@Column(name = "title", length = 150, type = MysqlColumnType.VARCHAR)
	@Notnull
	@ApiModelProperty(name = "title", value = "验证码标题")
	private String title;
	
	@Column(name = "status", length = 1, type = MysqlColumnType.INT)
	@Notnull
	@ApiModelProperty(name = "status", value = "验证码状态")
	private int status;
	
	@Column(name = "cat_id", length = 4, type = MysqlColumnType.INT)
	@Notnull
	@ApiModelProperty(name = "catId", value = "验证码类别id")
	private int catId;
}
